﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-10 12:14:26
// 负责人：Sushee
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{

    /// <summary>
    ///
    /// </summary>
    public partial class BaseLocationOperate
    {

        private static readonly string CACHE_KEY = "OF.BLL.BaseLocationInfo";
        private static readonly IBaseLocation dal = BaseLocation.CreateInstance();



        public static int GetMaxID()
        {
            return dal.GetMaxID();
        }

        public static int Insert(BaseLocationInfo info)
        {
            int reValue = dal.Insert(info);
            return reValue;
        }

        public static void Update(BaseLocationInfo info)
        {
            dal.Update(info);
        }

        public static void Delete(int locationID)
        {

            dal.Delete(locationID);
        }

        public static IList<BaseLocationInfo> Search(out int pageCount, int pageIndex, int pageSize, string where, string orderField, bool isDesc)
        {
            return dal.Search(out pageCount, pageIndex, pageSize, where, orderField, isDesc);
        }

        public static BaseLocationInfo GetByID(int locationID)
        {
            return dal.GetByID(locationID);

        }
    }

}